package com.example.myapplication.found.model;

import com.example.myapplication.found.bean.StockBean;
import com.example.myapplication.found.bean.StockOrderBean;
import com.example.myapplication.found.contract.FenxiCallback;
import com.example.myapplication.found.contract.PointCallback;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;

/**
 * @author: rongfeng
 * @date: 2022/2/25
 * @description
 */
public abstract class BaseData {
    protected String fundCode;
    protected String fundName;
    protected StockBean stockBean;
    protected StockBean weekStockBean;
    protected ExecutorService pool;
    List<StockOrderBean> orderList = new ArrayList<>();
    protected FenxiCallback callback;
    public BaseData(StockBean stockBean, StockBean weekStockBean) {
        this.stockBean = stockBean;
        this.weekStockBean = weekStockBean;
        fundCode = stockBean.code;
        fundName = stockBean.name;
    }


    public abstract void start();


    public void setKdjCallback(FenxiCallback callback) {
        this.callback = callback;
    }


}
